package org.igeek.proxy.jdk;

/**
 * @package org.igeek.proxy.jdk
 * @Description 动态代理测试类
 * @Author LittlePunk [296526219@qq.ccom]
 * @Version 2022.1
 * @Date 2023/11/13 21:37
 */
public class Test {
    public static void main(String[] args) {
        //创建实例对象
        Customer customer = new Customer();
        //创建动态代理对象
        OrderInterface proxy = new JdkProxy(customer).getProxy();
        //3.执行
        String res = proxy.order("鱼香茄子盖浇饭");
        System.out.println(res);

    }
}
